package nl.Viewer.ViewManager.Models.DataStores;

import java.nio.IntBuffer;

/**
 * A helper object to store image data
 * 
 * @author Jeroen Verschuur
 * 
 */

public class ImageDataObject {
   public int       width;
   public int       height;
   public IntBuffer data;
   public int[]     pixelData;

   public ImageDataObject( int width, int height, int[] data ) {
      super();
      this.width = width;
      this.height = height;
      this.pixelData = data;
      this.data = IntBuffer.wrap( pixelData );
      /*
       * this.data = IntBuffer.allocate( width * height ); this.data.put( data );
       */
   }
}
